how to reset postgres password

88

# sudo -u postgres psql
could not change directory to "/root"
psql (9.1.11)
Type "help" for help.

postgres=# \password
Enter new password:
Enter it again:
postgres=# \q
sudo sed -ibak 's/^\([^#]*\)md5/\1trust/g' /opt/bitnami/postgresql/conf/pg_hba.conf
sudo -u postgres pg_ctl reload
pg_ctl -D "C:\Program Files\PostgreSQL\12\data" restart
Langage de code :  JavaScript  ( javascript )

Comments

Submit
0 Comments